/**
 * 历史记录项的类型定义
 */
export interface HistoryItem {
  id: string;
  timestamp: number;
  data: {
    remarks: string;
    apiAddress: string;
    requestMethod: string;
    requestHeaders: string;
    requestBody: string;
    errorMessage: string;
  };
}

/**
 * 历史记录上下文的类型定义
 */
export interface HistoryContextType {
  history: HistoryItem[];
  addHistory: (data: Omit<HistoryItem['data'], 'id'>) => void;
  deleteHistory: (id: string) => void;
  clearHistory: () => void;
}
